package com.example.baguwen.service;

import com.example.baguwen.common.PageResult;
import com.example.baguwen.dto.BaguwenDTO;
import com.example.baguwen.entity.Baguwen;

public interface BaguwenService {
    
    Baguwen add(BaguwenDTO baguwenDTO);
    
    Baguwen update(Long id, BaguwenDTO baguwenDTO);
    
    void delete(Long id);
    
    Baguwen getById(Long id);
    
    PageResult<Baguwen> list(int pageNum, int pageSize);
    
    PageResult<Baguwen> listByType(String type, int pageNum, int pageSize);
    
    PageResult<Baguwen> search(String keyword, int pageNum, int pageSize);
} 